class Resource < ActiveRecord::Base
  validates_uniqueness_of :url,
                          :message => 'somebody already post it.'
  validates_presence_of :title, 
                        :message => 'could not be blank.'

end
